<script setup lang='ts'>
import { ref } from 'vue';
import ChildOne from './components/ChildOne.vue';

const car = ref('自行车')

const callback = (value) => {
  car.value = value
}

</script>

<template>
  <div>父组件--{{ car }}</div>
  <ChildOne :car="car" :callback="callback" @change-car="car = $event"></ChildOne>
</template>

<style scoped></style>